|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.pnr.hci.SubscriptionSnapshotHolderModel
public class SubscriptionSnapshotHolderModel
This class represents either the root subscription or a sub-subscription inside a
counter snapshot, and contains the list of included counters.
It contains the following information:
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="subscriptionSnapshotHolder">
<xs:complexType>
<xs:sequence>
<xs:element ref="counter" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="subscriptionSnapshotHolder" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="chargeSnapshotHolder" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="code" type="xs:string" />
<xs:attribute name="lastSnapshotDate" type="xs:dateTime" />
<xs:attribute name="lastSnapshotDays" type="xs:int" />
<xs:attribute name="lastExportDate" type="xs:dateTime" />
</xs:complexType>
</xs:element>
| Field Summary | |
|---|---|
static java.lang.String |
MODEL_NAME
The name of the object. |
| Constructor Summary | |
|---|---|
SubscriptionSnapshotHolderModel()
Builds an empty SubscriptionSnapshotHolderModel object |
|
SubscriptionSnapshotHolderModel(java.lang.String subscriptionCode)
Builds a SubscriptionSnapshotHolderModel object with a subscription code |
|
| Method Summary | |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element. |
void |
addChargeSnapshotHolder(ChargeSnapshotHolderModel chargeSnapshotHolder)
Adds a charge snapshot holder to the subscription snapshot holder |
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the child representing
the marshallable object which must be added to the element. |
void |
addCounter(CounterModel counter)
Add a counter to the snapshot holder |
void |
addSubscriptionSnapshotHolder(SubscriptionSnapshotHolderModel subscriptionsSnapshotHolder)
Adds a subscription snapshot holder to the subscription snapshot holder |
java.util.List<ChargeSnapshotHolderModel> |
getChargesSnapshotHolders()
Gets the list of charge snapshot holders (for charge activations)
contained in the snapshot holder. |
java.lang.String |
getCode()
Gets the code of the associated subscription (for root subscriptions), or the code of the associated
offer condition (for sub-subscriptions). |
java.util.List<CounterModel> |
getCounters()
Gets the list of counters contained in the snapshot holder. |
java.util.Date |
getLastExportDate()
Deprecated. Deprecated since version 2.0 of SAP CC |
java.util.Date |
getLastSnapshotDate()
Gets the last snapshot date of the subscription (only for root subscriptions). |
int |
getLastSnapshotDays()
Gets the maximum number of days in the past (corresponds to the difference between the date of the counter snapshot and the consumption date of the oldest late CDR rated on the counter snapshot) (only for root subscriptions). |
java.util.List<SubscriptionSnapshotHolderModel> |
getSubscriptionsSnapshotHolders()
Gets the list of subscription snapshot holders (for sub-subscriptions)
contained in the snapshot holder. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being processed. |
void |
setChargesSnapshotHolders(java.util.List<ChargeSnapshotHolderModel> chargesSnapshotHolders)
Sets the list of charge snapshot holders (for charge activations)
contained in the snapshot holder. |
void |
setCode(java.lang.String code)
Sets the code of the associated subscription (for root subscriptions), or the code of the associated
offer condition (for sub-subscriptions). |
void |
setCounters(java.util.List<CounterModel> counters)
Sets the list of counters contained in the snapshot holder. |
void |
setLastExportDate(java.util.Date lastExportDate)
Deprecated. Deprecated since version 2.0 of SAP CC |
void |
setLastSnapshotDate(java.util.Date lastSnapshotDate)
Sets the last snapshot date of the subscription (only for root subscriptions). |
void |
setLastSnapshotDays(int lastSnapshotDays)
Sets the maximum number of days in the past (corresponds to the difference between the date of the counter snapshot and the consumption date of the oldest late CDR rated on the counter snapshot) (only for root subscriptions). |
void |
setSubscriptionsSnapshotHolders(java.util.List<SubscriptionSnapshotHolderModel> subscriptionsSnapshotHolders)
Sets the list of subscription snapshot holders (for sub-subscriptions)
contained in the snapshot holder. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String MODEL_NAME
| Constructor Detail |
|---|
public SubscriptionSnapshotHolderModel()
SubscriptionSnapshotHolderModel object
public SubscriptionSnapshotHolderModel(java.lang.String subscriptionCode)
SubscriptionSnapshotHolderModel object with a subscription code
subscriptionCode - The code of a subscription| Method Detail |
|---|
public java.lang.String getCode()
subscription (for root subscriptions), or the code of the associated
offer condition (for sub-subscriptions).
subscription (for root subscriptions), or the code of the associated
offer condition (for sub-subscriptions)public void setCode(java.lang.String code)
subscription (for root subscriptions), or the code of the associated
offer condition (for sub-subscriptions).
code - the code of the associated subscription (for root subscriptions), or the code of the associated
offer condition (for sub-subscriptions)public java.util.Date getLastSnapshotDate()
public void setLastSnapshotDate(java.util.Date lastSnapshotDate)
lastSnapshotDate - the last snapshot date of the subscriptionpublic int getLastSnapshotDays()
public void setLastSnapshotDays(int lastSnapshotDays)
lastSnapshotDays - the maximum number of days in the past for the subscription snapshot holder@Deprecated public java.util.Date getLastExportDate()
@Deprecated public void setLastExportDate(java.util.Date lastExportDate)
lastExportDate - the last export date of the associated subscriptionpublic java.util.List<CounterModel> getCounters()
counters contained in the snapshot holder.
counters contained in the snapshot holderpublic void setCounters(java.util.List<CounterModel> counters)
counters contained in the snapshot holder.
counters - the list of counters contained in the snapshot holderpublic void addCounter(CounterModel counter)
counter to the snapshot holder
counter - the counter to add to the snasphot holderpublic java.util.List<SubscriptionSnapshotHolderModel> getSubscriptionsSnapshotHolders()
subscription snapshot holders (for sub-subscriptions)
contained in the snapshot holder.
subscription snapshot holders
contained in the snapshot holder.public void setSubscriptionsSnapshotHolders(java.util.List<SubscriptionSnapshotHolderModel> subscriptionsSnapshotHolders)
subscription snapshot holders (for sub-subscriptions)
contained in the snapshot holder.
subscriptionsSnapshotHolders - the list of subscription snapshot holders
contained in the snapshot holder.public void addSubscriptionSnapshotHolder(SubscriptionSnapshotHolderModel subscriptionsSnapshotHolder)
subscription snapshot holder to the subscription snapshot holder
subscriptionsSnapshotHolder - the subscription snapshot holder to addpublic java.util.List<ChargeSnapshotHolderModel> getChargesSnapshotHolders()
charge snapshot holders (for charge activations)
contained in the snapshot holder.
charge snapshot holders
contained in the snapshot holderpublic void setChargesSnapshotHolders(java.util.List<ChargeSnapshotHolderModel> chargesSnapshotHolders)
charge snapshot holders (for charge activations)
contained in the snapshot holder.
chargesSnapshotHolders - the list of charge snapshot holders
contained in the snapshot holderpublic void addChargeSnapshotHolder(ChargeSnapshotHolderModel chargeSnapshotHolder)
charge snapshot holder to the subscription snapshot holder
chargeSnapshotHolder - the charge snapshot holder to addpublic void addCharacterData(java.lang.String cData)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - The character data to be added
public void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.
addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface XMLMarshallableoutput - The XML output to marshal the object into
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||